;function slideCard(opt){
	this.dom = opt.dom;
	this.type = opt.type;
	if(opt.container){
		opt.container.style.overflow = 'hidden';
	};
	this.param = {
		status:'out'
	};
	this.init();
	this.addListener();
};
slideCard.prototype.init = function(){
	this.param.pageWidth = window.innerWidth;
	this.param.pageHeight = window.innerHeight;
	if((this.type == 1) && (this.param)){
		this.dom.classList.add('slide-con');
		this.dom.style.minHeight = this.param.pageHeight + 'px';
		this.dom.style.width = this.param.pageWidth + 'px';
		this.dom.style.left = this.param.pageWidth + 'px';
		this.dom.style.display = 'block';
		if(/slidein/g.test(location.hash)){
			this.slideIn();
		};
	};
};
slideCard.prototype.slideIn = function(){
	this.dom.style.webkitTransform = 'translate3d(-'+this.param.pageWidth+'px,0,0)';
	this.dom.style.transform = 'translate3d(-'+this.param.pageWidth+'px,0,0)';
	this.param.status = 'in';
};
slideCard.prototype.addListener = function(){
	var _this = this;
	this.dom.addEventListener('webkitTransitionEnd',function(ev){
		if(_this.param.status == 'in'){
			location.hash = 'slidein';
		};
	},false);
	window.addEventListener('hashchange',function(ev){
		var reg = /slidein/g;
		if(reg.test(ev.newURL)){
			
		}else{
			_this.goOut();
		};
	});
};
slideCard.prototype.goOut = function(){
	this.dom.style.webkitTransform = 'translate3d(0,0,0)';
	this.dom.style.transform = 'translate3d(0,0,0)';
	this.param.status = 'out';
};
slideCard.prototype.slideOut = function(){
	history.back();
};
